package com.kly.user.traffic;

public class UserTrafficJudgeEngine {

    private final UserActionsVariable userActionsVariable;

    public UserTrafficJudgeEngine(UserActionsVariable userActionsVariable) {
        this.userActionsVariable = userActionsVariable;
    }


    public boolean registerLongEnough() {
        return userActionsVariable.getRegisterMins() > 2;
    }

    public boolean hasWillingChatEnough() {
        return userActionsVariable.getSendMsgCountIn5Mins() > 5;
    }

    public boolean isChatting() {
        return userActionsVariable.getSendMsgCountIn5Mins() > 0;
    }

    public boolean hasChatterServeInTime() {
        return userActionsVariable.getSendMsgCountIn5Mins() > 0 && userActionsVariable.getReceiveMsgCntIn5Mins() > 0;
    }


    public boolean hasEnoughOnlineUserToChat() {
        return userActionsVariable.getOnlineModelCnt() > 5;
    }

    public boolean boughtPPV() {
        return userActionsVariable.getTodayBuyPPVCnt() > 0;
    }

    public boolean boughtPPVIn2MINS() {
        return userActionsVariable.getTodayBuyPPVCntIn2Mins() > 0;
    }

    public boolean isVip() {
        return userActionsVariable.getMemberStatus() == 1;
    }

    public boolean isOnline() {
        return userActionsVariable.getOnlineStatus() == 1;
    }

    public boolean hasLikedModel() {
        return userActionsVariable.getTodayLikeCnt() > 0;
    }


}
